package objects;

public class SeasonObject {

	private int idSumSn;
	private int seasonNum;
	private String seasonName;
	private int seasonYear;
	private int season2serial;
	private boolean selected;
	
	public SeasonObject(int idSumSn, int seasonNum, String seasonName, int seasonYear, int season2serial) {
		super();
		this.idSumSn = idSumSn;
		this.seasonNum = seasonNum;
		this.seasonName = seasonName;
		this.seasonYear = seasonYear;
		this.season2serial = season2serial;
	}
	
	public SeasonObject() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + idSumSn;
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SeasonObject other = (SeasonObject) obj;
		if (idSumSn != other.idSumSn)
			return false;
		return true;
	}

	public int getIdSumSn() {
		return idSumSn;
	}

	public void setIdSumSn(int idSumSn) {
		this.idSumSn = idSumSn;
	}

	public int getSeasonNum() {
		return seasonNum;
	}

	public void setSeasonNum(int seasonNum) {
		this.seasonNum = seasonNum;
	}

	public String getSeasonName() {
		return seasonName;
	}

	public void setSeasonName(String seasonName) {
		this.seasonName = seasonName;
	}

	public int getSeasonYear() {
		return seasonYear;
	}

	public void setSeasonYear(int seasonYear) {
		this.seasonYear = seasonYear;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public int getSeason2serial() {
		return season2serial;
	}

	public void setSeason2serial(int season2serial) {
		this.season2serial = season2serial;
	}

}
